package com.kata.chapter12;

/**
 * Created by Solidsnake on 2014/12/4.
 */
public class MySqlConnection implements IConnection {
    @Override
    public void commit(String... error) {
        if(error.length > 0) {
            throw new RuntimeException();
        }
        System.out.println("MySql 提交~");
    }

    @Override
    public void rollBack() {
        System.out.println("MySql 回滚~");
    }

    @Override
    public void close() {
        System.out.println("MySql 关闭连接~");
    }
}
